[![](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/H-IAAC/cst-episode-idea) # Representing Episodes: Space-Time Experiences for Cognitive Architectures This repo contains the code for running the experiments presented in the article "Representing Episodes: Space-Time Experiences for Cognitive Architectures", published at "2025 Annual International Conference on Biologically Inspired Cognitive Architectures". This project was developed as part of the Cognitive Architectures research line from the Hub for Artificial Intelligence and Cognitive Architectures (H.IAAC) of the State University of Campinas (UNICAMP). See more projects from the group [here](https://h-iaac.github.io/HIAAC-Index). [![](https://img.shields.io/badge/-H.IAAC-eb901a?style=for-the-badge&labelColor=black)](https://hiaac.unicamp.br/) [![](https://img.shields.io/badge/-Arq.Cog-black?style=for-the-badge&labelColor=white&logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4gPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1Ni4wMDQiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1Ni4wMDQgNTYiPjxwYXRoIGlkPSJhcnFjb2ctMiIgZD0iTTk1NS43NzQsMjc0LjJhNi41Nyw2LjU3LDAsMCwxLTYuNTItNmwtLjA5MS0xLjE0NS04LjEtMi41LS42ODksMS4xMjNhNi41NCw2LjU0LDAsMCwxLTExLjEzNi4wMjEsNi41Niw2LjU2LDAsMCwxLDEuMzY4LTguNDQxbC44LS42NjUtMi4xNS05LjQ5MS0xLjIxNy0uMTJhNi42NTUsNi42NTUsMCwwLDEtMi41OS0uODIyLDYuNTI4LDYuNTI4LDAsMCwxLTIuNDQzLTguOSw2LjU1Niw2LjU1NiwwLDAsMSw1LjctMy4zLDYuNDU2LDYuNDU2LDAsMCwxLDIuNDU4LjQ4M2wxLC40MSw2Ljg2Ny02LjM2Ni0uNDg4LTEuMTA3YTYuNTMsNi41MywwLDAsMSw1Ljk3OC05LjE3Niw2LjU3NSw2LjU3NSwwLDAs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DAsMS0yLjMsOS4xNjRsLTEuMS42MTksMi4wNiw5LjA4NywxLjQ1MS0uMUM5MzQuNDc1LDI1NS43NSw5MzQuNjI2LDI1NS43NDQsOTM0Ljc3OSwyNTUuNzQ0Wm0zNi44NDQtOC43NjJhNC45NzcsNC45NzcsMCwwLDAtNC4zMTYsMi41LDQuODg5LDQuODg5LDAsMCwwLS40NjQsMy43NjIsNC45NDgsNC45NDgsMCwxLDAsNC43NzktNi4yNjZaTTkyOC43LDIzNS41MzNhNC45NzksNC45NzksMCwwLDAtNC4zMTcsMi41LDQuOTQ4LDQuOTQ4LDAsMCwwLDQuMjkxLDcuMzkxLDQuOTc1LDQuOTc1LDAsMCwwLDQuMzE2LTIuNSw0Ljg4Miw0Ljg4MiwwLDAsMCwuNDY0LTMuNzYxLDQuOTQsNC45NCwwLDAsMC00Ljc1NC0zLjYzWm0zNi43NzYtMTAuMzQ2YTQuOTUsNC45NSwwLDEsMCw0LjIyMiwyLjM0NUE0LjkyMyw0LjkyMywwLDAsMCw5NjUuNDc5LDIyNS4xODdabS0yMC45NTItNS40MTVhNC45NTEsNC45NTEsMCwxLDAsNC45NTEsNC45NTFBNC45NTcsNC45NTcsMCwwLDAsOTQ0LjUyNywyMTkuNzcyWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTkyMi4xNDMgLTIxOC4yKSIgZmlsbD0iIzgzMDNmZiI+PC9wYXRoPjwvc3ZnPiA=)](https://h-iaac.github.io/HIAAC-Index) --- ## Abstract The choice of knowledge representation varies among different cognitive architectures. The agent's experience of Existence is defined by what the knowledge representation can and cannot represent from its observation. In this work, we define a representation of episodes that enable cognitive architectures to accumulate experiences. We describe how Existence may be fragmented in space and time to achieve a core knowledge representation format. This is used to construct Episode Ideas as a form of encoding the agent's experience of Existence. We demonstrate through experiments the use and versatility of the representation, as well as how semantic knowledge defined by our knowledge representation may affect how the agent experiences the environment. [![](https://img.shields.io/badge/-H.IAAC-eb901a?style=for-the-badge&labelColor=black)](https://hi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kxLDcuMzkxLDQuOTc1LDQuOTc1LDAsMCwwLDQuMzE2LTIuNSw0Ljg4Miw0Ljg4MiwwLDAsMCwuNDY0LTMuNzYxLDQuOTQsNC45NCwwLDAsMC00Ljc1NC0zLjYzWm0zNi43NzYtMTAuMzQ2YTQuOTUsNC45NSwwLDEsMCw0LjIyMiwyLjM0NUE0LjkyMyw0LjkyMywwLDAsMCw5NjUuNDc5LDIyNS4xODdabS0yMC45NTItNS40MTVhNC45NTEsNC45NTEsMCwxLDAsNC45NTEsNC45NTFBNC45NTcsNC45NTcsMCwwLDAsOTQ0LjUyNywyMTkuNzcyWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTkyMi4xNDMgLTIxOC4yKSIgZmlsbD0iIzgzMDNmZiI+PC9wYXRoPjwvc3ZnPiA=)](https://hiaac.unicamp.br/en/research-areas/arquiteturas-cognitivas/) ## Repository Structure ``` -\src\main\java\episode\idea: Source code for project execution -\docker.sh: Execution script for docker simulation container -\gradlew: Java build tool -\visualize_episodes.py: Helper script for plot generation ``` ## Requirements ### 1️⃣ Java Java JDK 8 or later is required for execution. For Debian, Ubuntu, etc. installation can be done by ``apt``: ```shell sudo apt install openjdk-8-jdk ``` ### 2️⃣ Docker To run the simulator, Docker Engine must be installed on your system. If you haven't yet installed the Docker Engine, follow the installation instructions below: #### **Linux** To run the container, you need to install the Docker Engine. Follow the steps on the official [Docker website](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository). > ⚠️ Make sure you follow the instructions for installing Docker Engine by apt. Docker Desktop for Linux will not allow you to use the graphical interfaces in the examples. #### **Windows** Download the installer and follow the installation steps on the [Docker] website (https://docs.docker.com/desktop/install/windows-install/). > ⚠️ Make sure that WSL 2 is installed according to the instructions in the [System Requirements](https://docs.docker.com/desktop/install/windows-install/#system-requirements). For use on Windows, you will also need to install [VcXsrv](https://sourceforge.net/projects/vcxsrv/) #### **MacOS** Download the installer for your hardware and follow the installation steps on the [Docker] website(https://docs.docker.com/desktop/install/mac-install/) For use on Mac you will also need to install [XQuatz](https://www.xquartz.org/) ## Usage ### **Linux** Once you have the Docker Engine installed, the Docker container for CoppeliaSim can be executed with the script provided in this repository: ```bash ./docker.sh ``` The `docker.sh` script will start the container and initialize CoppeliaSim with XServer. A window should open with a blank CoppeliaSim simulation. In a separated terminal window, execute the CST agent by running: ```shell ./gradlew run ``` ## Citation ```bibtext @software{my_citation, author = {G. Silva, Bruno and Camargo, Eduardo and R. Gudwin, Ricardo}, title = {Representing Episodes: Space-Time Experiences for Cognitive Architectures}, url = {https://github.com/H-IAAC/cst-episode-idea} } ``` ```bibitex @inproceedings{silva_b_episodes, author="Silva, Bruno G. and Camargo, Eduardo and da Silva Sim{\~o}es, Alexandre and Colombini, Esther Luna and Costa, Paula Dornhofer Paro and Gudwin, Ricardo Ribeiro", title="Representing Episodes: Space-Time Experiences for Cognitive Architectures", booktitle="Biologically Inspired Cognitive Architectures 2025", year="2025", publisher="Springer Nature Switzerland", } ``` ## Authors - (2025-2025) Bruno G. Silva: PhD Student, FEEC-UNICAMP - (2025-2025) Eduardo Camargo: Post-doc, FEEC-UNICAMP - (Advisor, 2025-2025) Ricardo R. Gudwin: Professor, FEEC-UNICAMP ## Acknowledgements Project supported by the brazilian Ministry of Science, Technology and Innovations, with resources from Law No. 8,248, of October 23, 1991.